package com.jeespring.order.feign;

import com.jeespring.dto.String;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Title: PayFeignService
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/25 19:46
 */
@Service
@FeignClient(value = "SPRING-CLOUD-PAY")
public interface PayFeignService {
    @GetMapping("/pay/get/{id}")
    String selectById(@PathVariable("id") Long id);

    @GetMapping("/pay/timeout")
    String timeout();
}
